@extends('http.app')

@section('content')
    <div class="content">
        <div class="wenzhang grayline">
            <div class="positionbg">
                <span><a href="/">首页</a> &gt; 网站地图</span>
            </div>
            <div class="dty_title">网站地图</div>
            <div class="dty_contain">
                @foreach($data as $val)
                    <div class="dty_mutitle">
                        <a target="_blank" href="/i/{{$val['id']}}">{{$val['title']}}</a>
                    </div>
                    <div class="dty_sublb">
                        <ul>
                            @if(isset($val['sub']))
                            @foreach($val['sub'] as $v)
                                @if($v['url'])
                                    <li><a title="{{$v['title']}}" target="_blank" href="{{$v['url']}}">{{$v['title']}}</a></li>
                                @else
                                    <li><a title="{{$v['title']}}" target="_blank" href="/i/{{$v['id']}}">{{$v['title']}}</a></li>
                                @endif
                            @endforeach
                            @endif
                        </ul>
                    </div>
                @endforeach
            </div>
        </div>
        <div class="clear20"></div>
    </div>
@endsection